﻿using System;
using System.Reflection;

namespace Duhking
{
    public static class FinderFactory
    {
        public static IFindMethod GetFinder(MethodInfo method)
        {
            if (method.IsGenericMethod || method.IsGenericMethodDefinition)
                return new GenericMethodFinder();
            return new StandardMethodFinder();
        }
    }
}
